<?xml version="1.0" encoding="UTF-8"?>
<!--
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html 
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License. 
 * The Original Code is Openbravo ERP. 
 * The Initial Developer of the Original Code is Openbravo SL 
 * All portions are Copyright (C) 2001-2006 Openbravo SL 
 * All Rights Reserved. 
 * Contributor(s):  ______________________________________.
 ************************************************************************
-->
<REPORT>
	<template file="RptC_Bpartner.html"/>
	<PARAMETER id="paramDirection" name="direction" default=""/>
	<PARAMETER id="paramLanguage" name="paramLanguage" attribute="value"/>
	<PARAMETER id="paramCSS" name="theme" attribute="href" replace="Default"/>
	<PARAMETER id="paramBpartner" name="paramBpartner" attribute="value"/>
	<PARAMETER id="param0" name="Param0" default="0"/>
  <PARAMETER id="param2" name="param2" default="2"/>
	<PARAMETER id="param100" name="Param100" default="100"/>
	<PARAMETER id="paramSysdate" name="paramSysdate"/>
	<structure name="structure1">
		<FIELD id="fieldValuePartner">value</FIELD>
		<FIELD id="fieldIsactivePartner">isactive</FIELD>
		<FIELD id="fieldCreatedPartner">created</FIELD>
		<FIELD id="fieldUpdatedPartner">updated</FIELD>
		<FIELD id="fieldNamePartner">name</FIELD>
		<FIELD id="fieldName2Partner">name2</FIELD>
		<FIELD id="fieldGroupnamePartner">groupname</FIELD>
		<FIELD id="fieldTaxidPartner">taxid</FIELD>
		<FIELD id="fieldIsemployee">isemployee</FIELD>
		<FIELD id="fieldIssalesrep">issalesrep</FIELD>
		<SECTION id="sectionDetail"/>
	</structure>
	<structure name="structureDiscount">
    <FIELD id="fieldRownum1">position</FIELD>
    <FUNCTION id="funcEvenOddRow1xx" name="MODULE" arg1="fieldRownum1" arg2="param2" format="integerEdition" attribute="class" replace="yy"/>
		<FIELD id="fieldNameDiscount">name</FIELD>
		<FIELD id="fieldSeqnoDiscount">seqno</FIELD>
		<FIELD id="fieldCascade">cascade</FIELD>
		<FIELD id="fieldDiscount" format="euroInform">discount</FIELD>
		<SECTION id="sectionDetailDiscount"/>
	</structure>
	<structure name="structureTemplate">
		<FIELD id="fieldNameTemplate">name2</FIELD>
		<FIELD id="returnTextsx" attribute="id" replace="sx">value</FIELD>
		<FIELD id="buttonTreexx" attribute="class">classTree</FIELD>
		<FIELD id="buttonTreexx" attribute="id" replace="xx">value</FIELD>
		<FIELD id="fieldLevel" attribute="onclick" replace="xx">value</FIELD>
		<SECTION id="sectionTypeTemplate" field="name2"/>
	</structure>
	<structure name="structureShipper">
    <FIELD id="fieldRownum2">position</FIELD>
    <FUNCTION id="funcEvenOddRow2xx" name="MODULE" arg1="fieldRownum2" arg2="param2" format="integerEdition" attribute="class" replace="yy"/>
		<FIELD id="fieldNameShipper">name</FIELD>
		<FIELD id="fieldSeqnoShipper">seqno</FIELD>
		<SECTION id="sectionDetailShipper"/>
	</structure>
	<structure name="structureAccount">
    <FIELD id="fieldRownum3">position</FIELD>
    <FUNCTION id="funcEvenOddRow3xx" name="MODULE" arg1="fieldRownum3" arg2="param2" format="integerEdition" attribute="class" replace="yy"/>
		<FIELD id="fieldNameAccount">name</FIELD>
		<FIELD id="fieldAccountno">accountno</FIELD>
		<SECTION id="sectionDetailAccount"/>
	</structure>
	<structure name="structureCustomer">
		<FIELD id="fieldInvoicerule">invoicerule</FIELD>
		<FIELD id="fieldInvoiceschedule">invoiceschedule</FIELD>
		<FIELD id="fieldPaymentrule">paymentrule</FIELD>
		<FIELD id="fieldSalesrep">salesrep</FIELD>
		<FIELD id="fieldPricelist">pricelist</FIELD>
		<FIELD id="fieldAccount">account</FIELD>
		<FIELD id="fieldPaymenttermname">paymenttermname</FIELD>
		<SECTION id="sectionDetailCustomer"/>
	</structure>
	<structure name="structureVendor">
		<FIELD id="fieldPaymentrulepo">paymentrulepo</FIELD>
		<FIELD id="fieldPricelistpo">pricelistpo</FIELD>
		<FIELD id="fieldAccountvendor">accountvendor</FIELD>
		<FIELD id="fieldPaymenttermnamepo">paymenttermnamepo</FIELD>
		<SECTION id="sectionDetailVendor"/>
	</structure>
	<structure name="structureLocation">
    <FIELD id="fieldRownum4">position</FIELD>
    <FUNCTION id="funcEvenOddRow4xx" name="MODULE" arg1="fieldRownum4" arg2="param2" format="integerEdition" attribute="class" replace="yy"/>
		<FIELD id="fieldName">name</FIELD>
		<FIELD id="fieldPostal">postal</FIELD>
		<FIELD id="fieldCity">city</FIELD>
		<FIELD id="fieldLocationregionname">locationregionname</FIELD>
		<FIELD id="fieldLocationcountryname">locationcountryname</FIELD>
		<FIELD id="fieldPhone">phone</FIELD>
		<FIELD id="fieldFax">fax</FIELD>
		<FIELD id="fieldBillto">billto</FIELD>
		<FIELD id="fieldShipto">shipto</FIELD>
		<FIELD id="fieldTaxlocation">taxlocation</FIELD>
		<FIELD id="fieldPhone2">phone2</FIELD>
		<SECTION id="sectionDetailLocation"/>
	</structure>
	<structure name="structureContact">
    <FIELD id="fieldRownum5">position</FIELD>
    <FUNCTION id="funcEvenOddRow5xx" name="MODULE" arg1="fieldRownum5" arg2="param2" format="integerEdition" attribute="class" replace="yy"/>
		<FIELD id="fieldContactname">contactname</FIELD>
		<FIELD id="fieldContactphone">contactphone</FIELD>
		<FIELD id="fieldContactphone2">contactphone2</FIELD>
		<FIELD id="fieldContactfax">contactfax</FIELD>
		<FIELD id="fieldContactadress">contactadress</FIELD>
		<FIELD id="fieldContactemail">contactemail</FIELD>
		<SECTION id="sectionDetailContact"/>
	</structure>
	<structure name="structureSalesorder">
		<FIELD id="fieldActualyear">actualyear</FIELD>
		<FIELD id="fieldAmount">amount</FIELD>
		<FIELD id="fieldRefyear">refyear</FIELD>
		<FIELD id="fieldAmountref">amountref</FIELD>
		<FIELD id="returnTextso" attribute="id" replace="so">value</FIELD>
		<FIELD id="buttonTreeoo" attribute="class">classTree</FIELD>
		<FIELD id="buttonTreeoo" attribute="id" replace="oo">value</FIELD>
		<FIELD id="fieldLeve2" attribute="onclick" replace="oo">value</FIELD>
		<FUNCTION id="fieldTotalOrder" name="SUBTRACT" arg1="fieldAmount" arg2="fieldAmountref" format="euroInform"/>
		<FUNCTION id="fieldTotalDivideOrder" name="DIVIDE" arg1="fieldTotalOrder" arg2="fieldAmountref"/>
		<FUNCTION id="fieldTotalAvgOrder" name="MULTIPLY" arg1="fieldTotalDivideOrder" arg2="param100" format="euroInform"/>
		<FUNCTION id="fieldTotalAvgOrder" name="LT" arg1="fieldTotalAvgOrder" arg2="param0" attribute="class" replace="xx"/>
		<SECTION id="sectionSalesorder"/>
	</structure>
	<structure name="structureSalesinvoice">
		<FIELD id="fieldActualyearInvoice">actualyear</FIELD>
		<FIELD id="fieldAmountInvoice">amount</FIELD>
		<FIELD id="fieldRefyearInvoice">refyear</FIELD>
		<FIELD id="fieldAmountrefInvoice">amountref</FIELD>
		<FIELD id="returnTextsi" attribute="id" replace="si">value</FIELD>
		<FIELD id="buttonTreeii" attribute="class">classTree</FIELD>
		<FIELD id="buttonTreeii" attribute="id" replace="ii">value</FIELD>
		<FIELD id="fieldLeve3" attribute="onclick" replace="ii">value</FIELD>
		<FUNCTION id="fieldTotalInvoice" name="SUBTRACT" arg1="fieldAmountInvoice" arg2="fieldAmountrefInvoice" format="euroInform"/>
		<FUNCTION id="fieldTotalDivideInvoice" name="DIVIDE" arg1="fieldTotalInvoice" arg2="fieldAmountrefInvoice"/>
		<FUNCTION id="fieldTotalAvgInvoice" name="MULTIPLY" arg1="fieldTotalDivideInvoice" arg2="param100" format="euroInform"/>
		<FUNCTION id="fieldTotalAvgInvoice" name="LT" arg1="fieldTotalAvgInvoice" arg2="param0" attribute="class" replace="xx"/>
		<SECTION id="sectionSalesinvoice"/>
	</structure>
	<structure name="structureSalesinout">
		<FIELD id="fieldActualyearInout">actualyear</FIELD>
		<FIELD id="fieldAmountInout">amount</FIELD>
		<FIELD id="fieldRefyearInout">refyear</FIELD>
		<FIELD id="fieldAmountrefInout">amountref</FIELD>
		<FIELD id="returnTextsn" attribute="id" replace="sn">value</FIELD>
		<FIELD id="buttonTreenn" attribute="class">classTree</FIELD>
		<FIELD id="buttonTreenn" attribute="id" replace="nn">value</FIELD>
		<FIELD id="fieldLeve4" attribute="onclick" replace="nn">value</FIELD>
		<FUNCTION id="fieldTotalInout" name="SUBTRACT" arg1="fieldAmountInout" arg2="fieldAmountrefInout" format="euroInform"/>
		<FUNCTION id="fieldTotalDivideInout" name="DIVIDE" arg1="fieldTotalInout" arg2="fieldAmountrefInout"/>
		<FUNCTION id="fieldTotalAvgInout" name="MULTIPLY" arg1="fieldTotalDivideInout" arg2="param100" format="euroInform"/>
		<FUNCTION id="fieldTotalAvgInout" name="LT" arg1="fieldTotalAvgInout" arg2="param0" attribute="class" replace="xx"/>
		<SECTION id="sectionSalesinout"/>
	</structure>
	<structure name="structureABC">
		<FIELD id="fieldActualyearABC">actualyear</FIELD>
		<FIELD id="fieldAmountABC">amount</FIELD>
		<FIELD id="fieldRefyearABC">refyear</FIELD>
		<FIELD id="fieldAmountrefABC">amountref</FIELD>
		<FIELD id="fieldTotalABC">totalactual</FIELD>
		<FIELD id="fieldTotalRefABC">totalref</FIELD>
		<FIELD id="returnTextabc" attribute="id" replace="abc">value</FIELD>
		<FIELD id="buttonTreeabc" attribute="class">classTree</FIELD>
		<FIELD id="buttonTreeabc" attribute="id" replace="abc">value</FIELD>
		<FIELD id="fieldLeve5" attribute="onclick" replace="abc">value</FIELD>
		<FIELD id="returnTextabcr" attribute="id" replace="abcr">valueref</FIELD>
		<FIELD id="buttonTreeabcr" attribute="class">classTree</FIELD>
		<FIELD id="buttonTreeabcr" attribute="id" replace="abcr">valueref</FIELD>
		<FIELD id="fieldLeve6" attribute="onclick" replace="abcr">valueref</FIELD>
		<SECTION id="sectionSalesABC"/>
	</structure>
</REPORT>
